home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / LowLevel / PCallback.cpp next >
C/C++ Source or Header  |  1996-07-16  |  831b  |  40 lines

  1. /*
  2.  *--- PCallback.cpp -------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 9:41 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * header file PCallback.h
  8.  *-------------------------------------------------------------------------
  9.  */
  10. #include "PMPlugin.h"
  11.  
  12. #ifdef MACINTOSH
  13. #include <exception.h>
  14. #else
  15. #include <eh.h>
  16. #endif
  17.  
  18. #include "PMCQErrs.h"
  19.  
  20. #include "PCallback.h"
  21.  
  22.  
  23. extern sPMParamBlockPtr gPB;
  24.  
  25.  
  26. PCallback::PCallback()
  27. {
  28.     itsPB = gPB;        // Make local reference to global param block
  29. }
  30.  
  31.  
  32. void PCallback::CallPageMaker() throw (PMErr)
  33. {
  34.     PMErr rc = itsPB->pmCallback(itsPB);
  35.     if (rc != CQ_SUCCESS)
  36.         throw rc;
  37. }
  38.  
  39. // end of PCallback.cpp
  40.